const SHORTCUTS = [ // 时间段预计定义
	{
		text: '今天',
		value: () => {
			const end = new Date()
			const start = new Date()
			start.setTime(start.getTime() - 3600 * 1000 * 24 * 0)
			return [start, end]
		},
	},
	{
		text: '三天内',
		value: () => {
			const end = new Date()
			const start = new Date()
			start.setTime(start.getTime() - 3600 * 1000 * 24 * 2)
			return [start, end]
		},
	},
	{
		text: '七天内',
		value: () => {
			const end = new Date()
			const start = new Date()
			start.setTime(start.getTime() - 3600 * 1000 * 24 * 6)
			return [start, end]
		},
	},
	{
		text: '一个月内',
		value: () => {
			const end = new Date()
			const start = new Date()
			start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
			return [start, end]
		},
	},
	{
		text: '三个月内',
		value: () => {
			const end = new Date()
			const start = new Date()
			start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
			return [start, end]
		},
	},
	// {
	// 	text: '半年内',
	// 	value: () => {
	// 		const end = new Date()
	// 		const start = new Date()
	// 		start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
	// 		return [start, end]
	// 	},
	// },
	// {
	// 	text: '一年内',
	// 	value: () => {
	// 		const end = new Date()
	// 		const start = new Date()
	// 		start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
	// 		return [start, end]
	// 	},
	// },
]
const CANPREFILRLIST = ['pdf','jpg','jpeg','png', 'doc', 'docx', 'xlsx', 'xls'] // 支持预览的文件类型列表
const WEIRUANPERVIEW = 'https://view.xdocin.com/view?src=' // 微软在线文档预览工具
// const WEIRUANPERVIEW = 'https://view.officeapps.live.com/op/view.aspx?src=' // 微软在线文档预览工具
const WEIRUANPERVIEWLIST = ['doc', 'docx', 'xlsx', 'xls'] // 微软在线文档预览工具可以预览的文件类型
const channelType = [
    {
        label: 'invite.link',
        channel: 'Invite Link',
        value: 0,
    },
    {
        label: 'invite.wechat',
        channel: 'Wechat',
        value: 1,
    },
    {
        label: 'invite.qq',
        channel: 'QQ',
        value: 2,
    },
]
const appType = [
    {
        label: 'push.all',
        channel: 'ALL',
        value: 0,
    },
    {
        label: 'push.ios',
        channel: 'app-ios',
        value: 1,
    },
    {
        label: 'push.and',
        channel: 'app-android',
        value: 2,
    },
    {
        label: 'push.wx',
        channel: 'mp-weixin',
        value: 3,
    },
]
export {
	SHORTCUTS,
	WEIRUANPERVIEW,
	CANPREFILRLIST,
	WEIRUANPERVIEWLIST,
    channelType,
    appType,
}